function write_video(filename, imgs)
% Write a sequence of images to a video file 
%
%   write_video(filename, imgs);
%

%% main

vobj = VideoWriter(filename, 'Uncompressed AVI');
open(vobj);

for i = 1 : numel(imgs)
    writeVideo(vobj, imgs{i});
end

close(vobj);
